package com.dragon.modules.yuegou.model.lot;

import com.dragon.modules.yuegou.entity.lot.MemberTicketEntity;
import com.dragon.modules.yuegou.enums.lot.MemberTicketGetType;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 会员奖券信息表模型类
 * 
 * @author pbuilder generated
 * @date 2019-10-24 10:22:55
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MemberTicket extends MemberTicketEntity {

	/**
	 * 构造一个空会员奖券信息表模型对象
	 */
	public MemberTicket(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员奖券信息表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberTicket(MemberTicketEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员奖券信息表模型对象
	 * 
	 * @param other 其它对象
	 */
	public MemberTicket(MemberTicket other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public MemberTicket id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public MemberTicket memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getActivityId() {
    	return activityId;
    }

    /**
	 * 设置活动ID
	 * 
	 * @param activityId 活动ID
	 * @return 当前对象
	 */
    public MemberTicket activityId(String activityId) {
    	this.activityId = activityId;
    	return this;
    }

	@Override
	public String getJoinId() {
    	return joinId;
    }

    /**
	 * 设置当前会员参与ID
	 * 
	 * @param joinId 当前会员参与ID
	 * @return 当前对象
	 */
    public MemberTicket joinId(String joinId) {
    	this.joinId = joinId;
    	return this;
    }

	@Override
	public String getShareId() {
    	return shareId;
    }

    /**
	 * 设置分享着参与ID
	 * 
	 * @param shareId 分享着参与ID
	 * @return 当前对象
	 */
    public MemberTicket shareId(String shareId) {
    	this.shareId = shareId;
    	return this;
    }

	@Override
	public String getTicketCode() {
    	return ticketCode;
    }

    /**
	 * 设置券码
	 * 
	 * @param ticketCode 券码
	 * @return 当前对象
	 */
    public MemberTicket ticketCode(String ticketCode) {
    	this.ticketCode = ticketCode;
    	return this;
    }

	@Override
	public Boolean getIsPrize() {
    	return isPrize;
    }

    /**
	 * 设置是否中奖 0-未中奖；1-已中奖
	 * 
	 * @param isPrize 是否中奖 0-未中奖；1-已中奖
	 * @return 当前对象
	 */
    public MemberTicket isPrize(Boolean isPrize) {
    	this.isPrize = isPrize;
    	return this;
    }

	@Override
	public MemberTicketGetType getGetType() {
    	return getType;
    }

    /**
	 * 设置[枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE
	 * 
	 * @param getType [枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE
	 * @return 当前对象
	 */
    public MemberTicket getType(MemberTicketGetType getType) {
    	this.getType = getType;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 * @return 当前对象
	 */
    public MemberTicket createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public MemberTicket createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 * @return 当前对象
	 */
    public MemberTicket modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 * @return 当前对象
	 */
    public MemberTicket modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

}
